package com.decorator.demo2;

/**
 * 具体装饰
 *
 * @author zhangsulei
 *
 */
public class Truck extends DecoratorCar {

	public Truck(Car car) {
		super(car);
	}

	public void create() {
		super.create();
		change();
	}

	@Override
	protected void change() {
		System.out.println("it's a truck.");
	}

}
